<script setup lang='ts'>

// 函数注解
const inputChange = (e:Event)=>{
  console.log((e.target as HTMLInputElement).value)
}
console.log(inputChange)
// 为button按钮进行注解
const btn = (e:Event)=>{
  console.log((e.target as HTMLButtonElement).value)
}
console.log(btn)

</script>
<template>
<div>
  hello vue

</div>
</template>
<style scoped>
</style>